package com.ibm.spatiotemp.utils;

public class Entry {
	/** The element. */
	protected Object _element;
	/** Next entry. */
	protected Entry _next;
	
	public Object getElement() {
		return _element;
	}
	
	public Entry getNext() {
		return _next;
	}
	
	public void clear() {
		_element = null;
		_next = null;
	}
	
	public int getSize() {
		int size = 0;
		Entry head = this;
		while (head != null) {
			size ++;
			head = head.getNext();
		}
		return size;
	}
}
